<?php

class Front extends LG_Controller {

	function  __construct()
	{
		parent::__contruct();

		$this->load->helper(array('url', 'form', 'date', 'html'));
	}
	
	function index()
    {
		$pages = array(
			'first' => 'First value',
			'second' => 'Second value'
		);
		
		$vars = array(
			'title' => 'My front frontpage title',
			'content' => array(
				'view' => 'sample-template',
				'data' => $pages
			)
		);
		
		$assets = array(
			'css' => array('first_css', 'second_css'),
			'js' => array('first_js', 'second_js')
		);

		$this->template->add_assets($assets)->assign($vars, TRUE);
    }
}
/* End of file front.php */
/* Location: /application/modules/front/controllers/front.php */